package cloud.authentication.server.authentication.provider;

import java.util.Set;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import cloud.authentication.server.po.Resource;

import com.clj.cloud.common.core.entity.vo.Result;


@FeignClient(name = "organization", fallback = ResourceProviderFallback.class)
public interface  ResourceProvider {
	 	@GetMapping(value = "/resource/all")
		Result<Set<Resource>> resources();
		
		@GetMapping(value = "/resource/user/{username}")
		Result<Set<Resource>> resources(@PathVariable("username") String username);
}
